package leetcodecompetition.S111;

import java.util.List;

/**
 * @Author: Siantar
 * @Date: 2023-08-19-22:31
 * @Description: 1.0
 */
public class T6954 {
    public int countPairs(List<Integer> nums, int target) {
        int n = nums.size(), sum = 0;
        for (int i = 0; i < n; i++) {
            for (int j = i + 1; j < n; j++) {
                if (nums.get(i) + nums.get(j) < target) {
                    sum++;
                }
            }
        }
        return sum;
    }
}
